﻿using System;
using System.Data;
using System.Collections.Generic;
using Maticsoft.Common;
using Hyfw.Model;
using System.Collections;
namespace Hyfw.BLL
{
	/// <summary>
	/// FactoryManager
	/// </summary>
	public partial class FactoryManager
	{
		private readonly Hyfw.DAL.FactoryService dal=new Hyfw.DAL.FactoryService();
		public FactoryManager()
		{}

        public ArrayList GetFactorys()
        {
            return dal.GetFactorys();
        }
        public ArrayList GetFactorys(int id)
        {
            return dal.GetFactorys(id);
        }
        public Hashtable SerachCommodity(string key, int pageIndex, int pageSize, string sortFiled, string sortOrder)
        {
            return dal.SerachCommodity(key, pageIndex, pageSize, sortFiled, sortOrder);
        }
        public void Add(Hashtable ht)
        {
            dal.Add(ht);
        }
        public void Update(Hashtable ht)
        {
            dal.Update(ht);
        }
        public void Delete(int id)
        {
            dal.Delete(id);
        }
        public bool DeleteList(string  ids)
        {
           return dal.DeleteList(ids);
        }
        /// <summary>
        /// 获取厂商数据
        /// </summary>
        /// <param name="key">厂商名称的关键字使用的是sql里面的like搜索</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="pageSize">条数</param>
        /// <param name="sortFiled">排序字段</param>
        /// <param name="sortOrder">降序或升序</param>
        /// <param name="superFactoryNo">父级经销商号码</param>
        /// <param name="roleString">登录这角色字符串</param>
        /// <param name="procedureName">存储过程名称</param>
        /// <returns></returns>
        public Hashtable GetListBy(string key, int pageIndex, int pageSize, string sortFiled, string sortOrder, string superFactoryNo, string roleString,string procedureName)
        {
            return dal.GetListBy(key, pageIndex, pageSize, sortFiled, sortOrder, superFactoryNo, roleString, procedureName);
        }


	}
}

